<%--
  Created by IntelliJ IDEA.
  User: yxj
  Date: 2025/1/1
  Time: 20:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>06-JSP的四大域对象</title>
</head>
<body>
    <%--
        JSP的四大域对象

    --%>
    <%
        //设置page范围的对象
        pageContext.setAttribute("name1","zhangsan");
        //设置request范围的对象
        request.setAttribute("name1","lisi");

        //设置session范围的对象
        session.setAttribute("name1","wangwu");

        //设置application范围的对象
        application.setAttribute("name1","zhaoliu");

    %>
</body>
</html>
